﻿<%@ Page Title="Thông tin chi tiết sản phẩm" Language="vb" AutoEventWireup="false" MasterPageFile="~/Master/InSite.Master" CodeBehind="ProductDetail.aspx.vb" Inherits="Core.ProductDetail" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
<SCRIPT LANGUAGE="JavaScript">
    function formatCurrency(num) {
        num = num.toString().replace(/\$|\,/g, '');
        if (isNaN(num))
            num = "0";
        sign = (num == (num = Math.abs(num)));
        num = Math.floor(num * 100 + 0.50000000001);
        cents = num % 100;
        num = Math.floor(num / 100).toString();
        if (cents < 10)
            cents = "0" + cents;
        for (var i = 0; i < Math.floor((num.length - (1 + i)) / 3); i++)
            num = num.substring(0, num.length - (4 * i + 3)) + ',' +
            num.substring(num.length - (4 * i + 3));
        //return (((sign) ? '' : '-') + '$' + num + '.' + cents);
        return (((sign) ? '' : '-') + '' + num);
    }
</script>
<div>
<fieldset >
            <asp:Label ID="lblProDate" Visible="false" runat="server"></asp:Label>
            <table width="100%">
                <tr>
                    <td style="width:100px; color: #666666;">
                        Tên sản phẩm:
                    </td>
                    <td>
                        <asp:TextBox ID="txtName" class="mediumfield" runat="server" style="width:404px;"></asp:TextBox>
                    </td>
                    <td rowspan="6" style="vertical-align: top;">
                        <fieldset style="padding-top: 0px;padding-bottom: 0px;padding-right: 0px;">
                            <table style="width:260px;">
                                <tr>
                                    <td style="color: #666666;vertical-align:middle">
                                        Sản phẩm mới:
                                    </td>
                                    <td>
                                        <span><input class="inputChk" type="checkbox" id="chkNew" checked='true' runat="server"  style="margin-left:-25px;margin-top: 10px;"/> 
                                        <labelChk style="margin-left:0px;margin-top: 10px;"></labelChk></span>
                                    </td>
                                </tr>
                                <tr>
                                    <td style="color: #666666;vertical-align:middle">
                                        Sản phẩm HOT:
                                    </td>
                                    <td>
                                        <span><input class="inputChk" type="checkbox" id="chkHot" checked='true' runat="server"  style="margin-left:-25px;margin-top: 10px;"/> 
                                        <labelChk style="margin-left:0px;margin-top: 10px;"></labelChk></span>
                                    </td>
                                </tr>
                                <tr>
                                    <td style="color: #666666;vertical-align:middle">
                                        Tình trạng kho:
                                    </td>
                                    <td>
                                        <span><input class="inputChk" type="checkbox" id="chkStock" checked='true' runat="server"  style="margin-left:-25px;margin-top: 10px;"/> 
                                        <labelChk style="margin-left:0px;margin-top: 10px;"></labelChk></span>
                                    </td>
                                </tr>
                                <tr>
                                    <td style="color: #666666;vertical-align:top;padding-top: 10px;">
                                        Khuyến mại:
                                    </td>
                                    <td>
                                        <asp:TextBox ID="txtPromotion" runat="server" TextMode="MultiLine" style="width:135px;margin-top: 10px;height: 205px;"></asp:TextBox>
                                    </td>
                                </tr>
                            </table>
                        </fieldset>
                    </td>
                </tr>
                <tr>
                    <td style="width:100px; color: #666666;">
                        Mã sản phẩm:
                    </td>
                    <td>
                        <asp:TextBox ID="txtCode" class="mediumfield" runat="server" style="margin-top: 20px;width:100px;"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td style="color: #666666;vertical-align: middle;">
                        Ảnh đại diện:
                    </td>
                    <td>
                        <asp:Image ID="ProImage" runat="server" style="margin-top: 20px;float:left;"/>
                        <asp:Button ID="btnCrop" runat="server" Text="Crop Ảnh" class="button" Height="26px" style="margin-left: 10px;margin-top: 20px;" />
                        <br />
                        <asp:FileUpload ID="avatarImg" runat="server" style="margin-top: 20px;margin-left:3px;"/>
                        
                    </td>
                </tr>
                <tr>
                    <td style="width:100px; color: #666666;">
                        Giá sản phẩm:
                    </td>
                    <td>
                        <asp:TextBox ID="txtPrice" class="mediumfield" runat="server" style="margin-top: 20px;width:100px;" onBlur="this.value=formatCurrency(this.value);"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td style="color: #666666;">
                        Danh mục:
                    </td>
                    <td>
                        <asp:DropDownList ID="cbxMenu" runat="server" CssClass="centerCbx" Visible="true" style="margin-top: 20px;"></asp:DropDownList>
                    </td>
                </tr>
                <tr>
                    <td style="color: #666666;vertical-align:top"><br />
                        Mô tả:
                    </td>
                    <td>
                        <asp:TextBox ID="txtDesc" runat="server" Rows="10" TextMode="MultiLine"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td style="color: #666666;vertical-align:top">Chi tiết:</td>
                    <td colspan="2">
                        <%@ Register assembly="FredCK.FCKeditorV2" namespace="FredCK.FCKeditorV2" tagprefix="FCKeditorV2" %>
                        <FCKeditorV2:FCKeditor ID="FCKeditor1"  BasePath="~/static/inSite/js/fckeditor/" Visible="true" Height="400" ToolbarSet="CustomAnhdp" runat="server">
                        </FCKeditorV2:FCKeditor>
                    </td>
                </tr>
                <tr>
                    <td style="color: #666666;">
                        Trạng thái:
                    </td>
                    <td>
                        <asp:DropDownList ID="cbxStt" runat="server" CssClass="centerCbx" Visible="true" style="margin-top: 20px;"></asp:DropDownList>
                    </td>
                </tr>
                <tr>
                    <td>
                    </td>
                    <td colspan="2">
                        <asp:Button ID="btaAddNew" runat="server" Text="Cập nhật" class="button" Height="26px" />
                        <asp:Button ID="btnBack" runat="server" Text="Quay lại" class="button" Height="26px" />
                    </td>
                </tr>
                
            </table>
    

    

    
</fieldset>

     

</div>
</asp:Content>
